package com.liang.subject.application.controller;

import com.liang.subject.infra.entity.UserInfo;
import com.liang.subject.infra.rpc.UserRpc;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RestController
@RequestMapping("/test")
public class TestFeignController {

    @Resource
    private UserRpc userRpc;

    @RequestMapping("/testFeign")
    public void test() {
        UserInfo jichi = userRpc.getUserInfo("o96_C6Ux4Om3hetb6klQEeVQUHaA");
        log.info("TestFeignController.userInfo:{}", jichi);
    }
}
